package com.example.victory.swagger.model;

import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.validation.annotation.Validated;

/**
 * OtherTransitDetail
 */
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2021-04-26T10:50:39.083+08:00")

public class OtherTransitDetail   {
  @JsonProperty("stkname")
  private String stkname = null;

  @JsonProperty("stkcode")
  private String stkcode = null;

  @JsonProperty("amt")
  private String amt = null;

  public OtherTransitDetail stkname(String stkname) {
    this.stkname = stkname;
    return this;
  }

  /**
   * 名称
   * @return stkname
  **/
  @ApiModelProperty(value = "名称")


  public String getStkname() {
    return stkname;
  }

  public void setStkname(String stkname) {
    this.stkname = stkname;
  }

  public OtherTransitDetail stkcode(String stkcode) {
    this.stkcode = stkcode;
    return this;
  }

  /**
   * 代码
   * @return stkcode
  **/
  @ApiModelProperty(value = "代码")


  public String getStkcode() {
    return stkcode;
  }

  public void setStkcode(String stkcode) {
    this.stkcode = stkcode;
  }

  public OtherTransitDetail amt(String amt) {
    this.amt = amt;
    return this;
  }

  /**
   * 金额
   * @return amt
  **/
  @ApiModelProperty(value = "金额")


  public String getAmt() {
    return amt;
  }

  public void setAmt(String amt) {
    this.amt = amt;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    OtherTransitDetail otherTransitDetail = (OtherTransitDetail) o;
    return Objects.equals(this.stkname, otherTransitDetail.stkname) &&
        Objects.equals(this.stkcode, otherTransitDetail.stkcode) &&
        Objects.equals(this.amt, otherTransitDetail.amt);
  }

  @Override
  public int hashCode() {
    return Objects.hash(stkname, stkcode, amt);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class OtherTransitDetail {\n");
    
    sb.append("    stkname: ").append(toIndentedString(stkname)).append("\n");
    sb.append("    stkcode: ").append(toIndentedString(stkcode)).append("\n");
    sb.append("    amt: ").append(toIndentedString(amt)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}

